package com.suse.warmstill.vo;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
//import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author 黄靖
 * @author 2022-09-29 13:14
 * description:登入Vo
 **/
@Data
@ApiModel("前端的登入Vo")
public class LoginVo extends BaseVo {

    /**
     * 用户名
     */
    @NotNull
    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "手机号长度输入不正确")
    //  @Pattern(regexp = "^1(3[0-9]|5[0-3,5-9]|7[1-3,5-8]|8[0-9])\\d{8}$", message = "手机号格式不正确")
    private String Phone;

    /**
     * 密码
     */
    @NotNull
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 登录图形验证码
     */
    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "前端必须传入uuid值")
    private String uuid;
}
